<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../day01/作业/axios.js"></script>
</head>
<body>
    <button>修改</button>
    <script>
        document.querySelector('button').addEventListener('click',()=>{
            axios({
                method:'put',
                url:'http://www.itcbc.com:3006/api/updatebook',
                params:{
                    id:471,
                    bookname:'完美',
                    author:'辰东',
                    publisher:'xxx出版社',
                    appkey:"987411"
                }

            }).then(({data})=>{
                
            })
        })
    </script>
</body>
</html>